package untiring07.mvc.actions;

import java.io.IOException;
import java.rmi.ServerException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public class LogoutAction implements ActionHandler{

	@Override
	public String execute(HttpServletRequest req, HttpServletResponse res)
			throws ServerException, IOException {

		String viewPage = "r|index.mvc";
		HttpSession sess = req.getSession();
		sess.invalidate(); //세션 제거
		
		return viewPage;
	}

}
